package a0.commonAPI.Math;

import org.junit.Test;

import java.util.Random;

public class RanndomDemo {


    @Test
    public void test(){

        Random random = new Random();
        //随机返回取值区间在 [-2^7 ,2^7-1] 的整型数值
        System.out.println(random.nextInt());
        //
        System.out.println(random.nextInt(1000));
        //
        System.out.println(random.nextFloat());
        //
        System.out.println(random.nextDouble());
        //
        System.out.println(random.nextLong());

    }

}
